Skip to content

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Aug 24, 2023

  • Rename _PyUnstable_GetUnaryIntrinsicName() to PyUnstable_GetUnaryIntrinsicName()
  • Rename _PyUnstable_GetBinaryIntrinsicName() to PyUnstable_GetBinaryIntrinsicName().

* Rename _PyUnstable_GetUnaryIntrinsicName() to
  PyUnstable_GetUnaryIntrinsicName()
* Rename _PyUnstable_GetBinaryIntrinsicName()
  to PyUnstable_GetBinaryIntrinsicName().
@vstinner
Copy link
Member Author

_PyUnstable_GetUnaryIntrinsicName() was added by @iritkatriel in commit 9c81fc2.

Same question than issue #107149 and PR #108440: either the API is made public in the unstable API and so PyUnstable_ prefix is correct. Or the function should be made private, but in this case, it should be moved to the internal C API, not be exported, and drop its PyUnstable prefix.

@vstinner vstinner marked this pull request as draft August 24, 2023 17:35
@vstinner
Copy link
Member Author

cc @encukou

@vstinner vstinner marked this pull request as ready for review August 28, 2023 23:41
@vstinner
Copy link
Member Author

According to @iritkatriel, the _Py prefix was not deliberate: #107149 (comment)

@vstinner vstinner merged commit 0b6a4cb into python:main Aug 28, 2023
@vstinner vstinner deleted the unstable_compile branch August 28, 2023 23:42
@vstinner
Copy link
Member Author

Note: this API is new in Python 3.13, Python 3.12 is not affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants